// ActionScript file

public var model:MyModel = new MyModel();

public function onClick():void {
	trace(model);
	this.model.addEventListener(MyEvent.OBJECT_ADDED, handler);
	this.model.addObject(this.input.text);
	this.input.text = "";
}

public function handler(event:MyEvent):void {
	this.labell.text = "";
	this.labell.text = event.object;
}
